<%--
  Created by IntelliJ IDEA.
  User: Yang
  Date: 2021/11/27
  Time: 8:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="common/devhead.jsp"%>>
</head>
<body style="background-color:white" class="nav-md">
<div class="container body">
    <div style="padding-right: 15px;
    padding-left: 259px;
    margin-right: auto;
    margin-left: auto;">
        <div class="x_title">
            <p><span style="font-size: 20px">查看并审核手游信息&nbsp;<span class="glyphicon glyphicon-user"></span>系统管理员</span>
            <div class="clearfix"></div>
        </div>
        <div class="row">
            <h2>手游基础信息 <i class="fa fa-user"></i><small>${devUserSession.devName}</small></h2>
            <div class="x_title">
                <div class="x_panel">
                    <div class="clearfix"></div>
                    <div class="x_content">
                        <div class="form-horizontal form-label-left">
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwareName">手游名称 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="hidden" value="${appView.id}" name="id">
                                    <input  class="form-control col-md-7 col-xs-12" readonly="readonly" data-validate-length-range="6" data-validate-words="2" id="softwareName" name="softwareName" placeholder="请输入手游名称" required="required" type="text" value="${appView.softwareName}">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="APKName">APK名称 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="APKName" value="${appView.APKName}" readonly="readonly" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="APKName" placeholder="请输入APK名称" required="required" readonly="readonly" type="text">
                                    <span class="apknameExist"></span>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" >支持ROM <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input  value="${appView.supportROM}" readonly="readonly" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="supportROM" placeholder="请输入ROM" required="required" type="text">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="interfaceLanguage">界面语言 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="interfaceLanguage" readonly="readonly" value="${appView.interfaceLanguage}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="interfaceLanguage" placeholder="请输入手游支持的界面语言" required="required" type="text">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwareSize">手游大小 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="softwareSize" readonly="readonly" value="${appView.softwareSize}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="softwareSize" placeholder="请输入手游大小、单位为Mb" required="required" type="text">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="downloads">下载次数 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="downloads" readonly="readonly" value="${appView.downloads}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="downloads" placeholder="请输入下载次数" required="required" type="text">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" >所属平台 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="flatformname" readonly="readonly" value="${appView.flatformname}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="flatformname" placeholder="所属平台" required="required" type="text">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" >分类 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input name="categoryLevel3" value="${appView.categoryLevel1Name}>${appView.categoryLevel2Name}>${appView.categoryLevel3Name}" class="form-control col-md-7 col-xs-12" readonly="readonly" data-validate-length-range="6" data-validate-words="2"   required="required" readonly="readonly" type="text">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" >手游状态 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input  value="${appView.statusname}" class="form-control col-md-7 col-xs-12" readonly="readonly" data-validate-length-range="6" data-validate-words="2"   required="required" readonly="readonly" type="text">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="appInfo">应用简介 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <textarea id="appInfo"  class="form-control col-md-7 col-xs-12" readonly="readonly" name="appInfo" required="required" type="text">${appView.appInfo}</textarea>
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12">LOGO图片 <span class="required">*</span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <img  src="${pageContext.request.contextPath}${appView.logoPicPath}" style="width: 100px;height: 80px;">
                                </div>
                            </div>
                            <div  style="margin-left: 407px">
                                <a class="btn btn-primary" href="${pageContext.request.contextPath}/backappInfo/auditPass/${appView.id}/${appView.version}">审核通过</a>
                                <a class="btn btn-primary" href="${pageContext.request.contextPath}/backappInfo/auditNoPass/${appView.id}/${appView.version}">审核不通过</a>
                                <a id="back" class="btn btn-primary">返回</a>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="x_title">
                    <h2>最新版本信息</h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content1">
                    <form class="form-horizontal form-label-left" action="${pageContext.request.contextPath}/appInfo/upAppVersion" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="appId" value="${appIdd}">
                        <input type="hidden" name="id" value="${version.id}">
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" >版本号 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="versionNo" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1" name="versionNo"
                                       placeholder="请输入版本号" readonly="readonly" type="text" value="${version.versionNo}" required="required">

                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" >版本大小 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="number" id="versionSize" name="versionSize"  required="required"
                                       data-validate-minmax="10,500" value="${version.versionSize}"  placeholder="请输入版本大小，单位为Mb" class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" >发布状态 <span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="hidden" name="publishStatus" id="publishStatus" value="3">预发布
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" >版本简介 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
              <textarea id="versionInfo" name="versionInfo" required="required"
                        placeholder="请输入本版本的相关信息，本信息作为该版本的详细信息进行版本介绍。" class="form-control col-md-7 col-xs-12">${version.versionInfo}</textarea>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" >apk文件 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <span class="ssa">${version.apkFileName}</span> <a id="xz">下载</a>&nbsp;&nbsp;<a href="javascript:;" id="ddel">删除</a>
                                <%-- <input type="file" class="form-control col-md-7 col-xs-12" name="download"  required="required"/>--%>
                                ${fileUploadError }
                            </div>
                        </div>
                        <div class="ln_solid"></div>
                        <%--<div class="form-group">
                            <div class="col-md-6 col-md-offset-3">
                                <button id="send" type="submit" class="btn btn-success">保存</button>
                                <button id="back" class="btn btn-primary">返回</button>
                            </div>
                        </div>--%>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<%@include file="common/devfoot.jsp"%>
<script src="${pageContext.request.contextPath}/statics/js/jquery-1.12.4.js"></script>
<script>
    var backBtn=null;
    $(function (){
        backBtn = $("#back");
        backBtn.on("click",function(){
            //alert("view : "+referer);
            if(referer != undefined
                && null != referer
                && "" != referer
                && "null" != referer
                && referer.length > 4){
                window.location.href = referer;
            }else{
                history.back(-1);
            }
        });
    })
</script>
</html>
